'use strict';
/**
 * Created by FreezeSoul on 2015/9/18.
 */
define([
    'domReady!',
    'angular',
    'loglevel',
    'adConfig',
    'jquery',
    'bootstrap',
    'jQueryMigrate',

    'css!libs/bootstrap/dist/css/bootstrap.min.css',
    'css!libs/components-font-awesome/css/font-awesome.min.css',
    'css!app/styles/base.css',

    'app/router'
], function (document, angular, log, adConfig) {
    angular.element(document).ready(function () {
        //为了简化，这里定义全局的
        window.adConfig = adConfig;
        if(window.parent === window){
            window.onbeforeunload = function (e) {
                return "是否离开可视化分析平台?";
            };
        }
        log.setLevel("trace");//silent
        angular.bootstrap(document, ['ad.appWeb']);
    });
});
